package com.zx.pm.service.impl;

import com.zx.common.core.domain.AjaxResult;
import com.zx.pm.domain.Project;
import com.zx.pm.mapper.ProjectMapper;
import com.zx.pm.service.ProjectService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class ProjectServiceImpl implements ProjectService {

    @Resource
    private ProjectMapper projectMapper;


    @Override
    public List<Project> selectList(Project project) {
        return projectMapper.list(project);
    }

    @Override
    public Project selectById(Long id) {
        return projectMapper.selectById(id);
    }

    @Override
    public boolean checkProjectName(Project project) {
        return projectMapper.checkProjectName(project);
    }

    @Override
    public boolean checkProjectNo(Project project) {
        return projectMapper.checkProjectNo(project);
    }

    @Override
    public Integer insert(Project project) {
        return projectMapper.insert(project);
    }

    @Override
    public Integer update(Project project) {
        return projectMapper.update(project);
    }
}
